package cn.ml.chuji.game.che;

public abstract class Che {
    private String xingHao;
    private String chePai;
    private int riZhuJin;
    public abstract double pay(int tian);

    public Che(String xingHao, String chePai, int riZhuJin) {
        this.xingHao = xingHao;
        this.chePai = chePai;
        this.riZhuJin = riZhuJin;

    }

    public Che() {
    }

    public String getXingHao() {
        return xingHao;
    }

    public void setXingHao(String xingHao) {
        this.xingHao = xingHao;
    }

    public String getChePai() {
        return chePai;
    }

    public void setChePai(String chePai) {
        this.chePai = chePai;
    }

    public int getRiZhuJin() {
        return riZhuJin;
    }

    public void setRiZhuJin(int riZhuJin) {
        this.riZhuJin = riZhuJin;
    }

    @Override
    public String toString() {
        return "车{" +
                "型号='" + xingHao + '\'' +
                ", 车牌='" + chePai + '\'' +
                ", 日租金=" + riZhuJin +
                '}';
    }
}
